package cs575.wido.action;

import cs575.wido.MyTaskListFactory;
import cs575.wido.TaskListFactory;
import java.awt.event.ActionEvent;

import javax.swing.AbstractAction;

import cs575.wido.ui.TaskWindow;

public class TaskAction extends AbstractAction {
	public TaskAction() {
		putValue(NAME, "Task");
	}

	@Override
	public void actionPerformed(ActionEvent e) {
		TaskListFactory factory = new MyTaskListFactory();
		TaskWindow tw = new TaskWindow(factory);
		tw.setVisible(true);
	}
}
